import Myrequest from '@/common/Myrequest.js';

// 获取话题列表
export const getList = () => {
	return Myrequest({
		URL: '/topic/getList',
		Method: 'get'
	})
}
export const getTopic = (data) => {
	return Myrequest({
		URL: '/topic/getTopic',
		Method: 'get',
		Data: data
	})
}

export const getTopicByClassId = (data) => {
	return Myrequest({
		URL: '/topic/getTopicByClassId',
		Method: 'get',
		Data: data
	})
}

export const getTopicPostList = (data) => {
	return Myrequest({
		URL: '/topic/getPostList',
		Method: 'GET',
		Data: data
	})
}